package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目对象 question
 *
 * @author ruoyi
 * @date 2024-12-11
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long questionId;

    /** 题目类型(0-选择题， 1-简答题， 2-填空题， 3-判断题) */
    @Excel(name = "题目类型(0-选择题， 1-简答题， 2-填空题， 3-判断题)")
    private Long questionType;

    /** 0-简单，1-中等，2-困难 */
    @Excel(name = "0-简单，1-中等，2-困难")
    private Long questionDifficulty;

    /** 题目分数 */
    @Excel(name = "题目分数")
    private Long questionMark;

    /** 所属题库 */
    @Excel(name = "所属题库")
    private String belongBank;

    /** 题干 */
    @Excel(name = "题干")
    private String question;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String optionA;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String optionB;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String optionC;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String optionD;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String answer;

    /** 题目解析 */
    @Excel(name = "题目解析")
    private String analyze;

    public void setQuestionId(Long questionId)
    {
        this.questionId = questionId;
    }

    public Long getQuestionId()
    {
        return questionId;
    }
    public void setQuestionType(Long questionType)
    {
        this.questionType = questionType;
    }

    public Long getQuestionType()
    {
        return questionType;
    }
    public void setQuestionDifficulty(Long questionDifficulty)
    {
        this.questionDifficulty = questionDifficulty;
    }

    public Long getQuestionDifficulty()
    {
        return questionDifficulty;
    }
    public void setQuestionMark(Long questionMark)
    {
        this.questionMark = questionMark;
    }

    public Long getQuestionMark()
    {
        return questionMark;
    }
    public void setBelongBank(String belongBank)
    {
        this.belongBank = belongBank;
    }

    public String getBelongBank()
    {
        return belongBank;
    }
    public void setQuestion(String question)
    {
        this.question = question;
    }

    public String getQuestion()
    {
        return question;
    }
    public void setOptionA(String optionA)
    {
        this.optionA = optionA;
    }

    public String getOptionA()
    {
        return optionA;
    }
    public void setOptionB(String optionB)
    {
        this.optionB = optionB;
    }

    public String getOptionB()
    {
        return optionB;
    }
    public void setOptionC(String optionC)
    {
        this.optionC = optionC;
    }

    public String getOptionC()
    {
        return optionC;
    }
    public void setOptionD(String optionD)
    {
        this.optionD = optionD;
    }

    public String getOptionD()
    {
        return optionD;
    }
    public void setAnswer(String answer)
    {
        this.answer = answer;
    }

    public String getAnswer()
    {
        return answer;
    }
    public void setAnalyze(String analyze)
    {
        this.analyze = analyze;
    }

    public String getAnalyze()
    {
        return analyze;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("questionId", getQuestionId())
                .append("questionType", getQuestionType())
                .append("questionDifficulty", getQuestionDifficulty())
                .append("questionMark", getQuestionMark())
                .append("belongBank", getBelongBank())
                .append("question", getQuestion())
                .append("optionA", getOptionA())
                .append("optionB", getOptionB())
                .append("optionC", getOptionC())
                .append("optionD", getOptionD())
                .append("answer", getAnswer())
                .append("analyze", getAnalyze())
                .toString();
    }
}
